package ComputerOrganization;

/**
 * @Author maojiangyue
 * @Date 2025/10/10
 * @Description
 */
public class CPU {
    private String model;
    private double frequency;

    public CPU(String model, double frequency) {
        this.model = model;
        this.frequency = frequency;
    }

    public void start() {
        System.out.println("CPU [" + model + "] 正在启动，主频: " + frequency + "GHz");
    }

    public void execute(String instruction) {
        System.out.println("CPU 正在执行指令: " + instruction);
    }
}
